<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

/*Route::get('/', function () {
    return view('welcome');
});*/

Route::get('/','admin\AdminController@index');

Route::get('/login', function () {
    return view('login/login');
});
Route::post('/doLogin','admin\AccountController@login');

Route::get('/logout','admin\AccountController@logout');

/*Route::get('/employeeManage', function () {
    return view('admin\AdminController@employee');
});*/

Route::get('/employeeManage','admin\AdminController@employee');

Route::get('/testEmployee','admin\AdminController@testEmployee');

Route::get('/addEmployee','admin\AdminController@addEmployee');


Route::post('/saveEmployee','admin\AdminController@saveEmployee');

Route::get('/deleteEmployee','admin\AdminController@deleteEmployee');

Route::get('/updateEmployee','admin\AdminController@updateEmployee');

Route::post('/doUpdateEmployee','admin\AdminController@doUpdateEmployee');



Route::get('/customerManage','admin\AdminController@customer');

Route::get('/addCustomer','admin\AdminController@addCustomer');

Route::post('/saveCustomer','admin\AdminController@saveCustomer');

Route::get('/deleteCustomer','admin\AdminController@deleteCustomer');

Route::get('/updateCustomer','admin\AdminController@updateCustomer');

Route::post('/doUpdateCustomer','admin\AdminController@doUpdateCustomer');

Route::get('/outCheckIn','admin\AdminController@outCheckIn');


Route::get('/customerStatistics','admin\AdminController@customerStatistics');

Route::post('/customer/getDay','admin\AdminController@getDay');

Route::post('/customer/getMonth','admin\AdminController@getMonth');




Route::get('/adminManage','admin\AdminController@admin');

Route::get('/addAdmin','admin\AdminController@addAdmin');

Route::post('/saveAdmin','admin\AdminController@saveAdmin');

Route::get('/deleteAdmin','admin\AdminController@deleteAdmin');

Route::get('/updateAdmin','admin\AdminController@updateAdmin');

Route::post('/doUpdateAdmin','admin\AdminController@doUpdateAdmin');

Route::get('/updateAdminLimit','admin\AdminController@updateAdminLimit');


Route::get('/jobManage','admin\AdminController@job');

Route::get('/addJob','admin\AdminController@addJob');

Route::post('/saveJob','admin\AdminController@saveJob');

Route::get('/updateJob','admin\AdminController@updateJob');

Route::post('/doUpdateJob','admin\AdminController@doUpdateJob');




Route::get('/couponManage','admin\AdminController@coupon');

Route::get('/addCoupon','admin\AdminController@addCoupon');

Route::post('/saveCoupon','admin\AdminController@saveCoupon');

Route::get('/updateCoupon','admin\AdminController@updateCoupon');

Route::post('/doUpdateCoupon','admin\AdminController@doUpdateCoupon');


Route::get('/adminOperateManage','admin\AdminController@adminOperate');


Route::get('/index','index\indexController@index');

Route::get('/index/getEmployees','index\indexController@getEmployees');

Route::get('/index/getAllNum','index\indexController@getAllNum');

Route::post('/index/getData','index\indexController@getData');



Route::get('/evaluationManage','admin\AdminController@evaluation');

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|


Route::group(['middleware' => ['web']], function () {
    //
});

Route::group(['middleware' => 'web'], function () {
    Route::auth();

    Route::get('/home', 'HomeController@index');
});

Route::group(['middleware' => 'web'], function () {
    Route::auth();

    Route::get('/home', 'HomeController@index');
});
*/